import request from '@/utils/request';

export function menuList(data) {
    return request({
        url: '/sys_api_menu/all',
        method: 'get',
        params: data
    })
}
export function addMenu(data) {
    return request({
        url: '/sys_api_menu/add',
        method: 'post',
        data
    })
}
export function editMenu(data) {
    return request({
        url: '/sys_api_menu/edit',
        method: 'post',
        data
    })
}
export function deleteMenu(data) {
    return request({
        url: '/sys_api_menu/delete',
        method: 'post',
        data
    })
}
export function getMenu(data) {
    return request({
        url: '/sys_api_menu/detail',
        method: 'get',
        params: data
    })
}
export function getRouters(data) {
    return request({
        url: '/owner/router',
        method: 'get',
        params: data
    })
}